//
//  MyTeamUserView.swift
//  LeGou
//
//  Created by lxm on 2022/7/30.
//

import UIKit

class MyTeamUserView: ZMXIBView {

    //MARK: --------------------属性--------------------
    var onWxClick : (()->())?
    //MARK: --------------------UI控件--------------------
    @IBOutlet weak var teamBtn: UIButton!
    
    @IBOutlet weak var avatar: UIImageView!
    
    @IBOutlet weak var name: UILabel!
    
    @IBOutlet weak var phone: UILabel!
    
    @IBOutlet weak var monthOrder: UILabel!
    
    @IBOutlet weak var fans: UILabel!
    
    @IBOutlet weak var invite: UILabel!
    
    @IBOutlet weak var totalProfit: UILabel!
    
    @IBOutlet weak var todayProfit: UILabel!

    @IBOutlet weak var monthProfit: UILabel!

    @IBOutlet weak var vipIcon: UIImageView!
    
    @IBOutlet weak var wechat: UIImageView!
    
    //MARK: --------------------生命周期--------------------
    override init(frame: CGRect) {
        super.init(frame: frame)
        setUI()
        bindAction()
        addConstraints()
    }
    
    required init?(coder: NSCoder) {
        super.init(coder: coder)
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        setUI()
        bindAction()
        addConstraints()
        wechat.zm.addTap(target: self, selector: #selector(onWechat))
    }

    //MARK: --------------------UI--------------------
    func setUI() {
 
    }
    
    func addConstraints() {
     
    }
    
    //MARK: --------------------methods--------------------
    func bindAction() {
        
    }
    
    @objc func onWechat() {
        if let onWxClick = onWxClick {
            onWxClick()
        }
    }
    //MARK: --------------------delegate--------------------

}
